function I(o) {
  if (typeof o == 'string') {
    const c = decodeURIComponent(encodeURIComponent(o));
    o = new Uint8Array(c.length);
    for (let t = 0; t < c.length; ++t) o[t] = c.charCodeAt(t);
  }
  return w(T(U(o), o.length * 8));
}
function w(o) {
  const c = [],
    t = o.length * 32,
    n = '0123456789abcdef';
  for (let e = 0; e < t; e += 8) {
    const r = (o[e >> 5] >>> e % 32) & 255,
      f = parseInt(n.charAt((r >>> 4) & 15) + n.charAt(r & 15), 16);
    c.push(f);
  }
  return c;
}
function a(o) {
  return (((o + 64) >>> 9) << 4) + 14 + 1;
}
function T(o, c) {
  (o[c >> 5] |= 128 << c % 32), (o[a(c) - 1] = c);
  let t = 1732584193,
    n = -271733879,
    e = -1732584194,
    r = 271733878;
  for (let f = 0; f < o.length; f += 16) {
    const g = t,
      m = n,
      A = e,
      p = r;
    (t = u(t, n, e, r, o[f], 7, -680876936)),
      (r = u(r, t, n, e, o[f + 1], 12, -389564586)),
      (e = u(e, r, t, n, o[f + 2], 17, 606105819)),
      (n = u(n, e, r, t, o[f + 3], 22, -1044525330)),
      (t = u(t, n, e, r, o[f + 4], 7, -176418897)),
      (r = u(r, t, n, e, o[f + 5], 12, 1200080426)),
      (e = u(e, r, t, n, o[f + 6], 17, -1473231341)),
      (n = u(n, e, r, t, o[f + 7], 22, -45705983)),
      (t = u(t, n, e, r, o[f + 8], 7, 1770035416)),
      (r = u(r, t, n, e, o[f + 9], 12, -1958414417)),
      (e = u(e, r, t, n, o[f + 10], 17, -42063)),
      (n = u(n, e, r, t, o[f + 11], 22, -1990404162)),
      (t = u(t, n, e, r, o[f + 12], 7, 1804603682)),
      (r = u(r, t, n, e, o[f + 13], 12, -40341101)),
      (e = u(e, r, t, n, o[f + 14], 17, -1502002290)),
      (n = u(n, e, r, t, o[f + 15], 22, 1236535329)),
      (t = d(t, n, e, r, o[f + 1], 5, -165796510)),
      (r = d(r, t, n, e, o[f + 6], 9, -1069501632)),
      (e = d(e, r, t, n, o[f + 11], 14, 643717713)),
      (n = d(n, e, r, t, o[f], 20, -373897302)),
      (t = d(t, n, e, r, o[f + 5], 5, -701558691)),
      (r = d(r, t, n, e, o[f + 10], 9, 38016083)),
      (e = d(e, r, t, n, o[f + 15], 14, -660478335)),
      (n = d(n, e, r, t, o[f + 4], 20, -405537848)),
      (t = d(t, n, e, r, o[f + 9], 5, 568446438)),
      (r = d(r, t, n, e, o[f + 14], 9, -1019803690)),
      (e = d(e, r, t, n, o[f + 3], 14, -187363961)),
      (n = d(n, e, r, t, o[f + 8], 20, 1163531501)),
      (t = d(t, n, e, r, o[f + 13], 5, -1444681467)),
      (r = d(r, t, n, e, o[f + 2], 9, -51403784)),
      (e = d(e, r, t, n, o[f + 7], 14, 1735328473)),
      (n = d(n, e, r, t, o[f + 12], 20, -1926607734)),
      (t = i(t, n, e, r, o[f + 5], 4, -378558)),
      (r = i(r, t, n, e, o[f + 8], 11, -2022574463)),
      (e = i(e, r, t, n, o[f + 11], 16, 1839030562)),
      (n = i(n, e, r, t, o[f + 14], 23, -35309556)),
      (t = i(t, n, e, r, o[f + 1], 4, -1530992060)),
      (r = i(r, t, n, e, o[f + 4], 11, 1272893353)),
      (e = i(e, r, t, n, o[f + 7], 16, -155497632)),
      (n = i(n, e, r, t, o[f + 10], 23, -1094730640)),
      (t = i(t, n, e, r, o[f + 13], 4, 681279174)),
      (r = i(r, t, n, e, o[f], 11, -358537222)),
      (e = i(e, r, t, n, o[f + 3], 16, -722521979)),
      (n = i(n, e, r, t, o[f + 6], 23, 76029189)),
      (t = i(t, n, e, r, o[f + 9], 4, -640364487)),
      (r = i(r, t, n, e, o[f + 12], 11, -421815835)),
      (e = i(e, r, t, n, o[f + 15], 16, 530742520)),
      (n = i(n, e, r, t, o[f + 2], 23, -995338651)),
      (t = s(t, n, e, r, o[f], 6, -198630844)),
      (r = s(r, t, n, e, o[f + 7], 10, 1126891415)),
      (e = s(e, r, t, n, o[f + 14], 15, -1416354905)),
      (n = s(n, e, r, t, o[f + 5], 21, -57434055)),
      (t = s(t, n, e, r, o[f + 12], 6, 1700485571)),
      (r = s(r, t, n, e, o[f + 3], 10, -1894986606)),
      (e = s(e, r, t, n, o[f + 10], 15, -1051523)),
      (n = s(n, e, r, t, o[f + 1], 21, -2054922799)),
      (t = s(t, n, e, r, o[f + 8], 6, 1873313359)),
      (r = s(r, t, n, e, o[f + 15], 10, -30611744)),
      (e = s(e, r, t, n, o[f + 6], 15, -1560198380)),
      (n = s(n, e, r, t, o[f + 13], 21, 1309151649)),
      (t = s(t, n, e, r, o[f + 4], 6, -145523070)),
      (r = s(r, t, n, e, o[f + 11], 10, -1120210379)),
      (e = s(e, r, t, n, o[f + 2], 15, 718787259)),
      (n = s(n, e, r, t, o[f + 9], 21, -343485551)),
      (t = l(t, g)),
      (n = l(n, m)),
      (e = l(e, A)),
      (r = l(r, p));
  }
  return [t, n, e, r];
}
function U(o) {
  if (o.length === 0) return [];
  const c = o.length * 8,
    t = new Uint32Array(a(c));
  for (let n = 0; n < c; n += 8) t[n >> 5] |= (o[n / 8] & 255) << n % 32;
  return t;
}
function l(o, c) {
  const t = (o & 65535) + (c & 65535);
  return (((o >> 16) + (c >> 16) + (t >> 16)) << 16) | (t & 65535);
}
function C(o, c) {
  return (o << c) | (o >>> (32 - c));
}
function h(o, c, t, n, e, r) {
  return l(C(l(l(c, o), l(n, r)), e), t);
}
function u(o, c, t, n, e, r, f) {
  return h((c & t) | (~c & n), o, c, e, r, f);
}
function d(o, c, t, n, e, r, f) {
  return h((c & n) | (t & ~n), o, c, e, r, f);
}
function i(o, c, t, n, e, r, f) {
  return h(c ^ t ^ n, o, c, e, r, f);
}
function s(o, c, t, n, e, r, f) {
  return h(t ^ (c | ~n), o, c, e, r, f);
}
export { I as default };
